package org.ndot.java.lang.ref;

import java.util.Date;

/**
 * @公司名称: 小蚂蚁学堂
 * 
 * @项目名称: J2SE_Study
 * 
 * @类名名称: org.ndot.java.lang.ref.MyDate.java
 * 
 * @作者姓名: SunJincheng
 * 
 * @软件版本: v1.0
 * 
 * @创建日期: 2010-4-13下午02:59:03
 */
public class MyDate extends Date {

	/** Creates a new instance of MyDate */

	public MyDate() {
		super();
	}

	protected void finalize() throws Throwable {

		super.finalize();

		System.out.println("obj [Date: " + this.getTime() + "] is gc");

	}

	public String toString() {

		return "Date: " + this.getTime();

	}

}
